<extend name="Base/common"/>

<block name="body">
	<div class="mui-segmented-control mui-segmented-control-inverted tab_menu">
	    <a class="mui-control-item <eq name="snatch_status" value="0"> mui-active</eq>" href="{:U('mine_join')}">全部</a>
	    <a class="mui-control-item <eq name="snatch_status" value="1"> mui-active</eq>" href="{:U('mine_join',array('snatch_status'=>'1'))}">进行中</a>
	    <a class="mui-control-item <eq name="snatch_status" value="2"> mui-active</eq>" href="{:U('mine_join',array('snatch_status'=>'2'))}">已揭晓</a>
	</div>
	<div class="mui-content mui-row tab_list">
		<volist name="list" id="vo">			
		<div class="mui-col-xs-4 mui-col-sm-3">
			<div class="snatch_item">
				<a href="{:U('snatch/detail',array('id'=>$vo['id']))}">
				<img src="{$vo.pic|get_cover='path'}"/>
				</a>
			</div>
			<div class="snatch_time">{$vo.id}期</div>
		</div>
		</volist>
	</div>
	<div class="page">
		{$_page}
	</div>
</block>
<block name="script">
	<script type="text/javascript">
		mui(".tab_menu").on('tap','a',function(){
			var url = this.attributes['href'].value;
			mui.openWindow({
				url:url
			});
		});
	</script>
</block>
